Ext.define('TS.view.dilema.RateForm', {
    extend: 'TS.lib.Form',
    alias : 'widget.dilemapointrateform',
    //title : 'Ocena',
	url:URL.dilema.form.dilemapointrate,
	items:[
		{xtype:'hidden',name:'dilema_point_rate_id'},
		{xtype:'area',fieldLabel:'Komentarz',name:'dilema_point_rate_comment'},
		{xtype:'numberfield',fieldLabel:'Ocena',name:'dilema_point_rate_value',minValue:1,maxValue:10,value:5},
		{xtype:'hidden',name:'dilema_point_id'}
	],
	buttons:[{
		text:'Zapisz',
		handler:Util.f.save,
		callback:function(){
			//Dict.bible.load();
			Util.store('DilemaPointRate').load();
		}
	},{
		text:'Nowe',
		handler:Util.f.clear,
		callback:function(){
			Util.s.load('DilemaPointRate');
			Util.fldVal('dilemapointrate->#dilema_point_id','dilema_point->id');
		}
	},{
		text:'Usuń',
		handler:Util.f.del,
		handlerConfig:{
			url:URL.dilema.del.dilemapointrate
		}
	}]
});